package com.mrdeer.user.api.dto.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 14:27
 */
@Data
@ApiModel(value = "MenuDTO", description = "菜单信息")
public class MenuDTO implements Serializable {
    private static final long serialVersionUID = 4368222651284711653L;

    @ApiModelProperty("菜单ID")
    private Long id;

    @ApiModelProperty("菜单父级ID")
    private Long parentId;

    @ApiModelProperty("菜单标题")
    private String title;

    @ApiModelProperty("菜单跳转URL")
    private String url;

    @ApiModelProperty("页面标识")
    private String code;

    @ApiModelProperty("菜单图标")
    private String icon;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("说明")
    private String comment;

    /**
     * 所属应用标识，作为资源的必要属性
     */
    @ApiModelProperty("所属应用编码")
    private String applicationCode;

    /**
     * 绑定的权限标识，作为资源的必要属性
     */
    @ApiModelProperty("绑定的权限编码")
    private String privilegeCode;

    @ApiModelProperty("状态")
    private Integer status;
}
